<template>
  <div class="progress">
    <div class="progress-bar" :style="{ width: `${percentage}%`, backgroundColor: color }"></div>
  </div>
</template>
<script setup>
const props = defineProps({
  percentage: Number,
  color: String,
})
</script>
<style lang="scss" scoped>
.progress {
  width: 100%;
  height: 6px;
  background-color: #ebeef5;
  position: relative;
}

.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: var(--primary);
  border-radius: 4px;

  transition: width 0.3s ease;
}
</style>
